package com.xgkj.diyiketang.activity.data;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Tao on 2017/4/6.
 */

public class VideoLiveAdapter extends FragmentPagerAdapter {

    List<Fragment> list = new ArrayList<Fragment>();

    public VideoLiveAdapter(FragmentManager fm, List<Fragment> list) {
        super(fm);
        this.list = list;
    }


    @Override
    public int getCount() {
        return list == null ? 0 : list.size();
    }

    @Override
    public Fragment getItem(int arg0) {
        return list.get(arg0);
    }

}


